import request from '@/utils/request'
export function getSurplus(projectId) {
  return request({
    url: '/biz/bizReceipt/getSurplus?projectId='+projectId,
    method: 'get'
  })
}
// 查询收款登记列表
export function listBizReceipt(query) {
  return request({
    url: '/biz/bizReceipt/list',
    method: 'get',
    params: query
  })
}

// 查询收款登记详细
export function getBizReceipt(id) {
  return request({
    url: '/biz/bizReceipt/' + id,
    method: 'get'
  })
}

// 新增收款登记
export function addBizReceipt(data) {
  return request({
    url: '/biz/bizReceipt',
    method: 'post',
    data: data
  })
}

// 修改收款登记
export function updateBizReceipt(data) {
  return request({
    url: '/biz/bizReceipt',
    method: 'put',
    data: data
  })
}

// 删除收款登记
export function delBizReceipt(id) {
  return request({
    url: '/biz/bizReceipt/' + id,
    method: 'delete'
  })
}
